package com.gzz;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Arrays;

public class TaxReturn {
    private String ssn;
    private int year;
    private BigDecimal taxableIncome;

    public TaxReturn(String ssn, int year, BigDecimal taxableIncome){
        this.ssn = ssn;
        this.year = year;
        this.taxableIncome = taxableIncome;
    }

    public String getSsn() {
        return ssn;
    }

    public void setSsn(String ssn) {
        this.ssn = ssn;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public BigDecimal getTaxableIncome() {
        return taxableIncome;
    }

    public void setTaxableIncome(BigDecimal taxableIncome) {
        this.taxableIncome = taxableIncome;
    }


    public static void main(String[] args) {
        long begin = System.currentTimeMillis();
        TaxReturn taxReturn = new TaxReturn("012-1324-1456342", 20, new BigDecimal(88.99));
        System.out.println(ToStringBuilder.reflectionToString(taxReturn, ToStringStyle.SIMPLE_STYLE));
        System.out.println(ToStringBuilder.reflectionToString(taxReturn, ToStringStyle.DEFAULT_STYLE));
        System.out.println(ToStringBuilder.reflectionToString(taxReturn, ToStringStyle.MULTI_LINE_STYLE));
        System.out.println(ToStringBuilder.reflectionToString(taxReturn, ToStringStyle.SHORT_PREFIX_STYLE));
        System.out.println(ToStringBuilder.reflectionToString(taxReturn, ToStringStyle.NO_FIELD_NAMES_STYLE));
        System.out.println("执行时间 " + (System.currentTimeMillis()- begin) + " 毫秒");
    }
}
